package com.bdqn.design.factory;

import com.bdqn.design.dao.NewsDao;
import com.bdqn.design.dao.impl.NewsDaoMongoDBImpl;

/**
 * NewsDaoMongoDBImplFactory 专门创建NewsDaoMySQLImpl实例的工厂
 *
 * @author LILIBO
 * @since 2024/7/4
 */
public class NewsDaoMongoDBImplFactory implements AbstractFactory {

    /**
     * 获取DAO接口实例
     *
     * @return
     */
    @Override
    public NewsDao getInstance() {
        return new NewsDaoMongoDBImpl();
    }

}
